package com.neuedu.user.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.neuedu.user.entity.Guestbook;
import com.neuedu.user.mapper.GuestbookMapper;

@Transactional
@Service
public class GuestbookserviceImpl implements GuestbookService {

	@Autowired
	 private GuestbookMapper dao;
	
	@Override
	public List<Guestbook> getGuestbook() {
		// TODO Auto-generated method stub
		return dao.getGuestbook();
	}

	@Override
	public int deleteGuestbook(Guestbook u) {
		// TODO Auto-generated method stub
		return dao.deleteGuestbook(u);
	}

	@Override
	public List<Guestbook> getGuestByCid(Guestbook c) {
		// TODO Auto-generated method stub
		return dao.getGuestByCid(c);
	}

	@Override
	public int addGuestbook(Guestbook u) {
		// TODO Auto-generated method stub
		return dao.addGuestbook(u);
	}

}
